package com.pro.service;

import java.util.List;

import com.pro.pojo.User;
import com.pro.pojo.WxUserMsg;

public interface UserService {
	User login(String username, String password) throws Exception;
	//用户报名
	User apply(User user)throws Exception;
	//存入微信用户信息
	void saveWxUser(WxUserMsg umsg) throws Exception;
	//查询微信用户是否报名
	List<User> selectByOpenId(String openid) throws Exception;
	User  selectUser(User user) throws Exception;
	void  updateUser(User user) throws Exception;
	//查询报名该项人数
	int selectCount(User user) throws Exception;
	int selectCountByOpenid(User user) throws Exception;
	WxUserMsg selectWxUser(String openid)throws Exception;
	void deleteByOpenid(String openid)throws Exception;
}
